﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace FazaDemo.PL.Wpf
{
    class TabsGenerator
    {

        private readonly WorkArea _workArea;

        public TabsGenerator(WorkArea workArea)
        {
            _workArea = workArea;
        }

        public void Build(IEnumerable<string> headers)
        {
            foreach (var header in headers)
            {
                _workArea.TabCtrlSupple.Items.Add(new TabItem { Header = header });
            }
        }

    }
}
